package com.ss.android.article.share.d;

import android.content.Context;
import android.text.TextUtils;
import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.browser.R;
import com.ss.android.article.share.e.c;
import com.ss.android.article.share.entity.BaseShareContent;

public final class a extends c {
    private Context a;

    public a(Context arg1) {

        this.a = arg1;
    }

    public final boolean a(BaseShareContent arg4) {
        boolean v0;
        if(this.a != null || arg4 != null) {
            String v0_1 = TextUtils.isEmpty(arg4.getTargetUrl()) ? arg4.getText() : arg4.getTargetUrl();
            Context v2 = this.a;
            String v1 = TextUtils.isEmpty(arg4.getTitle()) ? "" : arg4.getTitle();
            com.bytedance.common.utility.a.a.a(v2, ((CharSequence)v1), ((CharSequence)v0_1));
            UIUtils.showImageToast(this.a.getApplicationContext(), R.drawable.doneicon_popup_textpage, R.string.clip_sucess);
            v0 = true;
        }
        else {
            v0 = false;
        }

        return v0;
    }
}

